<?php

class Message extends AppModel {

public $useTable = 'Message'; 

public $belongsTo = array(

        'user' => array(
            'className'    => 'User',
            'foreignKey'   => 'userid'
        )

    );


}
?>